.luckCard {
  width: 100%;
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  .operateBtn {
    position: absolute;
    top: 40rpx;
    z-index: 2;
    display: flex;
    width: 100%;
    justify-content: space-between;
    .btn {
      font-size: 22px;
      color: #fff;
      background: orange;
      width: 70px;
      height: 46px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 0 8px 8px 0;
      &:last-child {
        border-radius: 8px 0 0 8px;
        background: #e4393c;
      }
    }
  }
  .activeContainer {
    // background: #50009f url('../../assets/activity/bg.png') top center no-repeat;
    background: #50009f url('https://c.jlshuangcheng.com/static/images/bg.png') top center no-repeat;
    background-size: contain;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    // background-color: #50009f;
    .bgImage {
      width: 750px;
    }
    .content {
      position: absolute;
      left: 0;
      top: 400px;
      width: 100%;
      height: 600px;
      .changeNum {
        width: 300px;
        height: 52px;
        background-color: #fee405;
        text-align: center;
        font-weight: normal;
        color: #bc5700;
        border-radius: 26px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #333;
        .num {
          margin: 0 10px;
        }
      }
      .box {
        width: 100%;
        height: 540px;
        position: relative;
        .card {
          width: 205px;
          height: 268px;
          display: flex;
          align-items: center;
          justify-content: center;
          position: absolute;
          transition: 0.3s;
          z-index: 1;
          &.active {
            animation: shaking 0.5s ease-in-out;
          }
          &.openCard {
            z-index: 999;
            transform: scale(1.5);
            top: 0 !important;
            left: 275px !important;
            animation: openCard 0.5s 0.5s linear forwards;
          }
          .cardSize {
            width: 130px;
            height: 190px;
          }
        }
      }
      .luky_buy {
        width: 100%;
        position: absolute;
        top: 650rpx;
        left: 25rpx;
        z-index: 1;
        .luky_buyli {
          display: inline-block;
          width: 700px;
          height: 104px;
          border-radius: 10px;
          text-align: center;
          background: linear-gradient(
            to right,
            #cb59fe,
            #840ebb,
            #840ebb,
            #cb59fe
          );
          color: #ffe279;
          font-size: 34rpx;
          display: flex;
          justify-content: center;
          align-items: center;
          &:not(:last-child) {
            margin-bottom: 40rpx;
          }
        }
      }
    }
  }
  .maskCard {
    display: none;
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    &.show {
      display: flex;
    }
  }

  .maskContent {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
    .blin {
      width: 100%;
      height: 100%;
      animation: circle 10s linear infinite;
      background: url('https://c.jlshuangcheng.com/static/images/redPack/gold.png') no-repeat center /
      // background: url('../../assets/activity/gold.png') no-repeat center /
        contain;
      display: none;
      &.showBlin {
        display: block;
      }
    }
    .caidai {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      transform: scale(1.2);
      background: url('https://c.jlshuangcheng.com/static/images/redPack/dianzhui.png') no-repeat center /
      // background: url('../../assets/activity/dianzhui.png') no-repeat center /
        contain;
      display: none;
      &.showCaidai {
        display: block;
      }
    }
    .winning {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 600px;
      height: 510px;
      margin: -255px 0 0 -300px;
      transform: scale(0);
      z-index: 104;
      &.reback {
        animation: reback 0.5s linear forwards;
      }
      .redHead {
        position: relative;
        top: 60px;
        width: 100%;
        height: 335px;
        background: url('https://c.jlshuangcheng.com/static/images/redPack/top.png') no-repeat center /
        // background: url('../../assets/activity/top.png') no-repeat center /
          contain;
      }
      .redbody {
        position: relative;
        top: -70px;
        width: 480px;
        height: 360px;
        left: 10%;
        background: url('../../assets/activity/red_rou.png') no-repeat center /
          contain;
        z-index: 106;
        .title {
          color: orange;
          /* margin-top: 100rp; */
          position: absolute;
          left: 0;
          top: 170px;
          width: 100%;
          text-align: center;
          font-family: cursive;
          font-weight: 500;
          font-size: 40px;
        }
      }
      .card {
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -232px;
        margin-top: 40px;
        width: 80%;
        height: 250px;
        transition: top 1s;
        z-index: 105;
        background: url('https://c.jlshuangcheng.com/static/images/redPack/middle.png') no-repeat center /
        // background: url('../../assets/activity/middle.png') no-repeat center /
          contain;
        &.pull {
          animation: cardMove 1s linear forwards;
        }
        .resultBg {
          background: #eee;
          width: 380rpx;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #e4393c;
          height: 230px;
          left: 50%;
          transform: translate(-50%, 15px);
          z-index: 88;
          position: absolute;
        }
      }
      .close {
        opacity: 0;
        position: absolute;
        right: 0rem;
        top: -80px;
        width: 64px;
        height: 64px;
        animation: fadein 0.5s 0.5s linear forwards;
      }
    }
  }
}

@keyframes shaking {
  0%,
  100% {
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  33% {
    -o-transform: rotateY(-20deg);
    -ms-transform: rotateY(-20deg);
    -moz-transform: rotateY(-20deg);
    -webkit-transform: rotateY(-20deg);
    transform: rotateY(-20deg);
  }
  66% {
    -o-transform: rotateY(20deg);
    -ms-transform: rotateY(20deg);
    -moz-transform: rotateY(20deg);
    -webkit-transform: rotateY(20deg);
    transform: rotateY(20deg);
  }
}

@keyframes openCard {
  10%,
  30%,
  50% {
    -o-transform: scale(1.5) translateX(-10px);
    -ms-transform: scale(1.5) translateX(-10px);
    -moz-transform: scale(1.5) translateX(-10px);
    -webkit-transform: scale(1.5) translateX-(10px);
    transform: scale(1.5) translateX(-10px);
  }
  20%,
  40%,
  60% {
    -o-transform: scale(1.5) translateX(10px);
    -ms-transform: scale(1.5) translateX(10px);
    -moz-transform: scale(1.5) translateX(10px);
    -webkit-transform: scale(1.5) translateX(10px);
    transform: scale(1.5) translateX(10px);
  }
  100% {
    -o-transform: scale(1.5) translateX(90deg);
    -ms-transform: scale(1.5) translateX(90deg);
    -moz-transform: scale(1.5) translateX(90deg);
    -webkit-transform: scale(1.5) translateX(90deg);
    transform: scale(1.5) rotateY(90deg);
  }
}

@keyframes circle {
  0% {
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes reback {
  100% {
    -o-transform: scale(1);
    -ms-transform: scale(1);
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes cardMove {
  100% {
    margin-top: -140px;
  }
}
@keyframes fadein {
  100% {
    opacity: 1;
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
